﻿using System.Runtime.InteropServices;

namespace libWasm
{
    public static class Class1
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
        [UnmanagedCallersOnly(EntryPoint ="Add")]
        static int Add(int a, int b)
        {
            return a + b;
        }

        [DllImport("__Internal", EntryPoint ="hello")]
        static extern void Hello(double a);
        [UnmanagedCallersOnly(EntryPoint = "Good")]
        static void Good()
        {
            Console.WriteLine("hello ha.");
            Hello(3);
        }
    }
}
